Added validation of hashes as well as objects