Added better validation for series ids