add validation to register and login view