LoginDao completed, as its unit test, various improvements