Fixed bug in logout HTTP method