Add LoginInfo to encapsulate login database, store information success, check user name fail.