Fixed up the location check at login.