modified redirect at login