First of all, when we buy a house, we don't consider whether you are husband and wife or whether the husband and wife buy a house together, because it is meaningless.
A person only needs to carry his valid ID and cash. Because when you buy a house, you only need to provide valid identity documents, and then write the house in your name and pay the money.
But because this house was bought by husband and wife after marriage, you should put this house in the property of husband and wife at this time. So when they divorce, they will divide the property.
So when one spouse buys a house, the other spouse doesn't need to make any response.