adding objects for instances and images/validation for setting instance name and image