Added validation check for login page.