validate documents fields on update.