Re-wrote validation against header totals and did minor adjustments to the tokens