Fix success message on Agent workflow displaying on invalid rather than valid