fixing bug in api/login delete endpoint