add errors from Form class

Add the possibility to display errors from new Form class.