validations added on signup and login