fixes the login issue for already registered users