Added data validation for transactions

Note: This will not compile until Daniel uploads
template_row_recommendation.xml.  I did my development with a part of
the recommendation code commented out.