index: id to class for validation