What are the consequences of illegality in realtion to contract law?