Fix for Login redirects.