fixed edit form errors