manage form build and errors