The state basically downgraded its marriages to a sort of "partnership contract".
Sensible would be to require the contract before performing the religious wedding or granting a religious divorce or annulment, to prevent chaos, but to never view the contract as a substitute for the church issuing a decree.