jquery.validator.addMethod("username",function(value,element){returnthis.optional(element)||value==value.match(/^[a-zA-Z._]+$/);},"a-z, A-Z, ' . ' and ' _ ' only please");jquery.validator.addMethod("confirm_password",function(value,element){returnthis.optional(element)||value===jquery('#password').val();},"password does not match");