Validating of email and password