add validation of config