control access so that only students and teachers can use the application