add login/logout

delete swp file
Merge pull request #45 from nikuuchi/master

add login/logout