Contracts signed by mentally incompetent people are generally invalid. So this article isn't about that. Therefore, when the article says the courts accept the contracts as valid they can't be talking about the contracts signed by the infirm, but the article conflates both things maliciously.