fix the validation of the amount add a regex.