(1) An act of a statutory entity is invalid, unless section 20 applies, if it is—
(a) an act that is contrary to, or outside the authority of, an Act; or
(b) an act that is done otherwise than for the purpose of performing its functions.
(2) Subsection (1) does not limit any discretion of a court to grant relief in respect of a minor or technical breach.