The problem is the redirects. We should do this in an external popup window, perhaps?