Fix window resize
Do not close login dialog if login failed.