checking if student state causes error