Added validation for email and password.
got the authorization working