logout REST call