fix for login dialog when redirected there