prevent multiple login dialogs