validating and fixing html