applied if statement to _items_form to fix error message