Modify logout method to Debug method