Validation logic and duplicate URL array