Added a subdocument validator