make sure that the links are all valid