correct the jquery validation code