Making the onValidate event compatible with CE

Making the onValidate event compatible with Joomla core Contact 1.5 and newer and with Contact Enhanced and Ajax Contact