added validation for password length and email format on sign up