Login and logout.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>