Legal opinion and contract validity