logout redirect fix