Added the missing validation so it matches the contract.