[Backend] Fixed up the API call for logout