fixed duplicate login window after login failure