validation of config