Redirects upon successful login using window.location.href