add login and logout

add login and logout