Fixed the bug that allowed student ids to go through if a valid id is followed after an invalid id.