restored the login promise object, which had vanished for some reason