updated changes to logout