Updated form error handler

Check child type when converting form to array