support login and logout

Signed-off-by: brucefengnju <brucechenofnju@gmail.com>