Add error handle to form