implement logout handling
AttributeError: 'UserDB' object has no attribute 'hash_userid'