Only allow correct contracts to be saved.