Adding validator for config