def METHOD_NAME(self, password):
    try:
        return check_password_hash(self.data['password'], password)
    except KeyError:
        app.logger.error("Problem with user '{}' account: no password field".format(self.data['id']))
        raise