Issue #14: Logout not working