bugfix: redirect after login and logout does not work