A marriage contract does not guarantee divorce, but the protection of the rights of both spouses in the event of divorce. . . .