Added security for not allowing students to view professor page