save doc
validation