Fix username check on login.