Add validation to ensure names are specified when creating new goals.