I do think that women who choose not to work put themselves in a vulnerable position. It's great when it is all going well, but if it all falls apart, then it can go very wrong. I don't think either partner should have a right to stay in any house - property should be sold upon divorce and settlement completed and both parties responsible for finding their own new accommodation. Children don't need to stay in one home for their entire childhood, and you are adding another layer of complexity and resentment to what is already a difficult situation. Make a clean break, pay child support as required, but don't have a property hanging around for 10+ years.
I also believe that pre-nuptial agreements should be compulsory. I had one with my now-exh, and when we split, there were no arguments because we had already agreed to what we would do 'just in case'. If people were forced to look at the practical realities whilst everything is still in the sunshine and roses phase, then some relationships would be very different. If you can't make an agreement whilst everything is going well, you aren't going to be able to make one when it all goes tits up.