Replaced deprecated function

`Widget::wrapFormElementWithError` to `Widget::Error`