Change submit form function to a remote AJAX call.