improve account login query