Module to submit forms via ajax and do a basic form validation