isValidContractName