login-logout functionality completed, student-teacher pages also secured based on user type