Added validation and error message if command X provided with parameters