now only checking validity of transactions