Validation for login page.