fix login redirection, so that could redirect to oringinal page