Validating commands.