I'm not really qualified in any way to offer advice, but, as the mother of a 17 1/2 year old who is now in a court-ordered Residential Treatment Center (RTC), I can, sometimes, clearly see what I/we might have done differently. Not that doing so would have been any guarantee of a different outcome, but, who knows...
I would say, as has been suggested, make sure you and your husband are equally involved and agree on EVERY issue in advance, before you respond to your child about those issues.
But, most importantly, if I had it to do over again, I would put my own feelings aside and allow my son to fully experience the consequences of his actions, DESPITE the pain it caused me.
I can't tell you how many times I, by trying to make things easier for my son, stepped in to help ease the pain for him (me)in regard to the consequences of his behavior.
Now, at almost 18 years old, sadly, he's still expecting me to do that.