Validate and display output