Whenever Bailey barked in his crate, I just gave him a firm "NO!". After a few days, he stopped. Now he only whines when he has to go potty. He had separation anxiety, but he has grown out of it now.