add validation on config setting