corrects reference to User.logout in User deregistering handler