CRM-14153 - added validate function to get rid of HTML_Quickform Error