updated logout function