Section 5. Any provision of any contract or other document or other agreement which violates section two or which, if complied with by the person intended to be bound by the provision, would cause a violation of section two shall be null and void as being against the public policy of the commonwealth.