validation utils: fixed HTML formatting

1. now display document info even if there are no errors

2. does not output tons of whitespace