Fix logout.
Merge pull request #39 from tOkeshu/fix-logout

Fix logout.