Use schema validator for validating of document. Issue #24