do not close the popup window until authentication window appears