Added form error

to be rebased