Use the command decorator to validate params