updated the validators to handle the registration form