Barking is good... at the right time and if controllable. Dogs use barking as a form of communication and I find what becomes most important is to not accidentally reward unwanted barking. Make sure communication is clear and be consistent.
consistent reward
Reward your dog consistently. Be consistent with how and when... but all also be consistent with reduction of reward.