add login and logout
Merge pull request #1 from pgu/add_login_logout

add login and logout