Validation can be done in three ways.
1. GUI testing: I will fetch the values from the application
2. DB Testing: I will write a query to fetch the values
3. Prameters Testing: The values(test data) as inputs parameters which i given to enter into the application.
You can use the function dataset
If (#1 is eq # 3 && #1 is eq #2)
{ Print sucess with the values}
Else
{Print failure the data is missing}