Added validation of hashes instead of objects