old_contents: from frappe.website.page_controllers.web_page import WebPage
  
  class WebFormPage(WebPage):
  	pass
  
new_contents: from frappe.website.page_controllers.web_page import WebPage
  import frappe
  
  class WebFormPage(WebPage):
  	def validate(self):
  		return bool(frappe.get_all("Web Form", filters={'route': self.path}))
  
subject: Add validator for WebForm