redo login / out to handle redirects properly