+/- fix register and login bug.

Signed-off-by: Euhow <euhowzy@gmail.com>