Do think of the crate as a good thing. In time,
your dog will too.
Do let the dog out often enough so that it is never forced to soil the
crate.
Do let the dog out if it whines because it needs to eliminate. If you
know it doesn't have to eliminate, correct it for whining or barking.
Do clean out the crate regularly.
Don't punish the dog if it soils the crate. It is miserable enough and
probably had to.
Don't use the crate as a punishment.
Don't leave the dog in the crate for a long time after letting it
eat and drink a lot.
Don't leave the dog in the crate too much. Dogs sleep and rest a lot,
but not all the time. They need play time and exercise.
Don't check to see if your dog is trustworthy in the house
(unsupervised, outside of the crate) by letting the dog out of the crate
for a long time. Start with very short periods and work your way
up to longer periods.