validate config variable logic fixed