correct $u->getDuplicateLogin() and login logic