minor  fix for logout, error