created new form builder method for errors