Your purchase contract should include a contingency that the purchase is subject to your receiving clear title to the property. This process includes a title search and title insurance.