First version of handling form errors introduced #3