afterlogin redirect fixing