Fixed authenticator class to do proper authentication of user with hash.