fixed bug for logout failure when the auth token expired. logout is now a synchronous action