Command validation core.