error in logout