check that fields have been modified before updating updatedAt