Add validation to ensure names and types are specified when creating items