Form handling can be quite repetitive, the usage of a helper library should therefore be considered.
Look at what validations register() supports and try to validate the e-mail address input as accurately as possible.
We learned…