added before filter methods and helpers files for students and teachers