Handle hash in validator