refs #81

Fix previous commit.
Should now work with redirect after login and redirect after logout