When the husband has deserted his family, the wife may prosecute or defend, in his name, any action which he might have prosecuted or defended, and, under like circumstances, the same right shall apply to the husband upon the desertion of the wife.
750 ILCS 65/3