Actually checking for a valid link in the correct place.