Actually fix the routing problem. Move isProfessor from a global variable into sessionService.