D.P.
I honestly don't think it's your husband. I believe it's because when there is two of you around, there is someone else to fall back on so he's more comfortable misbehaving. With one parent around kids tend to be more wary. If he upsets you, who is he going to run to.
My advice, be consistent with your reprimands. Even when you don't think he's getting it, he is and one day you'll realize it. Plus he's 2.5 they're usually wild at that age and are masters of the art of selective hearing. LOL.
Hang in there.