Validation updated for login page