Fixed the login dialog still going tot he main screen if you closed it without logging in.