Command validation