Replaced the deprecated Widget::wrapFormElementWithError with Widget::Error.