why has my 13 yr old dog become overly protective of me?

He barks at my husband like his an intruder whenever he comes near me, wagging his tail the whole time.