give login builtin redirection

Now you can login and logout without losing your place at all.