fixing logout redirect