Validation implementation completed for QuerySpec Model