Use Input Constraints
To significantly decrease the amount of bounce, mistakes, wrong data, etc. you should always use the constraints on what can be inputted into the field:
- Min and max length (num. of characters)
- Format
- Numeric, alphabetic, alphanumeric, all symbols
- Dependencies, etc.
For instance, the card number always consists of digits only, so there is no need to allow typing any other symbols.