Parameter validation for the stats controller