Added sid validation