Replaced deprecated function

`Widget::wrapFormElementWithError` to `Widget::Error`
Merge pull request #4 from nathanhornby/master

Replaced deprecated function for 2.4 compatibility