Fixed a sytax bug.
We don't need to test status code now.
Finish modifying login unit test.
Modify APIs of register and unit test.