linked validation js