Changes and validation Jquery and mongodb