links url validation fix