add validation to links if present