fixing typo in validation code due to bad search/replace for jquery $