fixed bug in api/logout
i had a merge error and i liked it