updates logout path