account login method now returns queryResult