The want or failure, in whole or in part, of the consideration of a written contract may be shown as a defense, total or partial, except as provided in the uniform commercial code, chapter 554.