[TODO-LIST #007] Yanmin:add a function of login.
[TODO-LIST #007] Yanmin:fixed and add some tests.
[TODO-LIST #008] Yanmin:add the function of register account.
[TODO-LIST #008] Yanmin:add some tests.