Validation for amount field.