Use form to handle duplicate item error.