redirect is now done for student user type only