add required validation to image view