fixed a form error on the add and edit page