if you enter a string in rate and not numbers - an error
if you enter a string in rate and not numbers - an error