Add config validation to cmd.php