datastream validation