fixed reopening of login dialog