add validation to register screen