Added validate password logic to the login page.