added email validations for the user registration form