check for unique title for add and edit product