check hash value