Error handling for empty goal name field