Add invalidFormException for later use in withForm constructs.