Fixed an issue where there are duplicate which prevents login.