get form data as an object, and send form as ajax