validates format of link