Fixed another issue with legacy login.