Backend validation for contract