Fix login for existing users