Handling validation for image urls.