preparing to catch the popupLogin race condition