add validation and remove bad urls