Input Validation
The basic pattern for input validation should conform to the following steps
Clean the users input.
Validate the clean input.
Assign the validated input to the target entity.
The basic pattern for input validation should conform to the following steps
Clean the users input.
Validate the clean input.
Assign the validated input to the target entity.