When any married woman has been legally declared insane, or when any married woman is confined in any Alabama state hospital for the insane and the superintendent thereof shall have certified in writing to the probate judge of the county of the residence of the husband that in his opinion such married woman is permanently insane and such certificate has been recorded in the office of such probate judge, the husband may convey any or all of his real estate, not including the homestead, by deed, mortgage or deed of trust as though he were single.