Add hash validation