             validate
 
         if value?
-            pattern = new RegExp pattern
-            result = $.trim pattern.exec value
+            _pattern = new RegExp pattern
+            result = $.trim _pattern.exec value
             _evaluate result, value
 
     validateAlpha: (value, pattern) ->

            validate

        if value?
            pattern = new RegExp pattern
            result = $.trim pattern.exec value
            _evaluate result, value

    validateNoSpaces: (value, pattern) ->


        _evaluate = (listItems, value) ->
            if $.inArray(value, listItems) is -1
                _list = listItems.join ', '
                validate.status = 'danger'
                validate.message = "this field should be one of these: #{_list}"                   
            else
                validate.message = null
                validate.status = 'success'
