you could do this by creating a ternary expression to evaluate whether the RS data is the same as the value from the validated field collection.
The code for getting the validated field value will look similar to this:
<?php echo(ValidatedField("confirm","FirstName")) ?>
an example of the ternary expresion would look like:
<?php echo(((ValidatedField("confirm","FirstName") == $row_rsRecordset['FirstName'])?ValidatedField("confirm","FirstName"):$row_rsRecordset['FirstName']) ?>