[ffwizard] add tables for FORM_INVALID err and some clean ups