I’ve got no problem with that because it’s a contract entered by 2 people. The laws of the state, though, govern contracts.
No one has a right to force someone else to enter a contract with them.
Nor does anyone have a right to force someone to marry them....therefore, marriage is NOT a ‘right’.
Nor does anyone have the right to force an inapplicable persons entry into a third party’s contract.