Changing order of login model validation checks to avoid exercising DB.