Try to sort out login/logout/redirect urls.