MDL-48665 login: Fix detection of reused password