Added an html validation check by looking at Nokogiri errors