added link validation