fix error display to only display when actually have errors