Fixes the logout functionality.
Adds references location.
Merge pull request #12 from Shallong/logout-bug-fix

Logout bug fix