Moving the validation rules to take place on form submit
===

I'm trying to figure out how I can make these validation rules take place on submit. I tried putting them inside the submitHandler but that didn't work. The rule is located at the bottom. That way they can validate when I want them to.

    $(document).ready(function()
    {
	$.validator.addMethod('regexp', function(value, element, param)
	{
		return this.optional(element) || value.match(param);
	}, 'You can not have any uppercase letters or spaces or underscores!');
	var validator = $('#addNewTitleForm').data('validator');
	validator.settings.submitHandler = function()
	{ 
		var dataString = $('form').serialize();
		$.ajax(
		{
			type: 'POST',
			url: 'http://www.kansasoutlawwrestling.com/kowmanager/titles/addnewtitle/submit',
			data: dataString,
			dataType: 'json',
			success: function(data)
			{
				if (data.error)
				{
					$('.box .content').removeAlertBoxes();
					$('.box .content').alertBox(data.message, {
						type: 'warning',
						icon: true,
						noMargin: false
					});
					$('.box .content .alert').css(
					{
						width: '',
						margin: '0',
						borderLeft: 'none',
						borderRight: 'none',
						borderRadius: 0
					});
				}
				else
				{
					$('.box .content').removeAlertBoxes();
					$('.box .content').alertBox(data.message, {
						type: 'success',
						icon: true,
						noMargin: false
					});
					$('.box .content .alert').delay(5000).fadeOut();
					$('.box .content .alert').css(
					{
						width: '',
						margin: '0',
						borderLeft: 'none',
						borderRight: 'none',
						borderRadius: 0
					});
					$('#addNewTitleForm').data('validator').resetForm();
					$(':input', 'form').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');
					var $form = $( '#addNewTitleForm' );
					$form[0].reset(); // now reset the form for real real, which will reset the dropdowns (<select> elements)
					$form.find('select').trigger('liszt:updated'); // fix the dropdowns to reflect the new value of the underlying <select> elements
				}
			}
		});
	};
	$('#addNewTitleForm input[name="directory_name"]').rules('add', {
		regexp: /^[a-z]*$/
	});
    });