fix logout  and set auth for api/ needs to propagate message