updated logout call