Message set for invalid id when trying to edit