Fixed form redirects on login