Fixed exception when logging in as unknown user