Trying to do login through a redirect to see if this fixes the issue with Chrome not closing the login popup.