Adding logic to ensure startRow and pageNum are numeric