Redirects on login and logout events work.