add thrift validation on read

This will validate the incoming thrift against the provided thrift class on read to enable skipping bad record.