transaction validity legal opinion