login query logical improvment
Merge pull request #11 from Yaliang/master

login query logical improvment