check for id before deleting a todo