Added validation for email and password