fixes an issue with logging in on IE11