fixed sorting error from enrolling from course_info page as a student
gave instructors course_info
fixed bug where instructors logged in as students could enroll in their own courses, now just displays "You teach this course!"
made code mildly pythonic and very functional for viewing student grades