Add login/logout
Merge pull request #34 from fukayatsu/fix-on-logout

Add login/logout