Modify the login validation