changed logout method to get