Cleaned login/out flow
Merge pull request #28 from zzmp/loginFlow

Login flow