check HashSet of transactions are mutually valid

also took out duplicate isValid