fixed bug - dialog closes at login button press