Any provision in a contract which is prohibited by this chapter shall be void but shall not otherwise affect the validity of the contract.