Check category/port arguments for corectness