The estate or merits of the title cannot be inquired into on the trial of any complaint filed under this article, but all legal and equitable defenses may be had against a recovery for damages or for the unlawful detention of the land.
Ala. Code § 6-6-336 (1975)