added hash validations