added proper redirecting on home page to student and teacher pages