added validation to make sure names are specified in creation