added check to make sure user is the teacher/course co-ordinator