add validation to login and create account pages