Where the agent having authority to sell lands for his principal makes a contract in writing for a sale of the same in his own name and puts the purchaser in possession thereof, who makes thereon lasting and valuable improvements, and the purchaser is afterward sued by the principal for the recovery of the land, the purchaser may, with proper allegations in his answer, show the intention of the parties to have been that the principal should be bound by the contract. Butler v. Kaulback, 8 Kan. 668. Compare Taylor v. Guest, 45 How. Pr. (N. Y.) 276.