Add conditionals around "teacher" info injection