Fixed incorrect login redirects