Added validation to ensure names are specified