Fix bug in the hashtable provider

Fix bug: check whether $this->users[$username] is an array