Change the signature for config validation function