Fixed issues with getting login queries. Still need to show dialog while connection and logon result messages