add client side checks for the registration form