Added hash validation