added validation to h3 closing tag