Set the validations for the registration form