Fix handling of query results to regain saving login status
Merge pull request #122 from JohnThomson/feature/fixLoginQueries

Fix handling of query results to regain saving login status