rename ValidateTxInput to ValidateScript to match the rest of the file