removed validation when building a model from a document