No surety, when sued, can confess judgment or suffer judgment to pass by default if the principal debtor, on being notified of the pending action, is willing to defend the action at his own cost and give good and sufficient collateral security to the surety, to be approved by the court.
Ala. Code § 8-3-12 (1975)