fixed the hash validation