Add login and logout
Merge pull request #2 from otga/login

Add login and logout