fix login/logout redirects