resolve html validation errors