attempt to fix log out issue due to cookies being undefined