added preliminary data validation against the schema