Login and logout.

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