modified login prof/student/both redirection