add validation to image editing page

adding validation rules on single image editing page