Fixed issue #11 - Logout function does not work