Updated SmartyValidate.class.php to fix errors