added error if component is missing a name