Replaced hash creation validation with built-in validate method