another sanity check if transaction is valid