add hash validation assertion