login the redirect