ajax form validation and form submission on the dashboard