validation for invalid amount