validate sign up and login in