check for duplicates upon submission of new doc