command: Run validation before asking for input. Fixes #602