Fixes issue where the 'logout' method wouldn't actually, well, logout