Added back trx validation checks