validation Apply to SignUp and LogIn