Input Validation

The basic pattern for input validation should conform to the following steps

  1. Clean the users input.

  2. Validate the clean input.

  3. Assign the validated input to the target entity.