Fix login redirects