added duplicate entity validator