What are the essential elements required to form a valid contract for the sale of real estate in Ontario?