validation did not work for images with out li