Added isAuthenticated for logout in policies. (added according TODO)