I\'m validating for duplicate names by using jquery+Ajax. Everything is working fine except that the form is not submitting once everything returns true
What
Doing remote form validation? Checkout the jquery.validate plugin and its .remote() rule.
Other than that your code looks fine. Here's a working demo: http://jsfiddle.net/dKUSb/7/