email and password validation working