Login dialog redisplays after incorrect login