Vue.js directive to submit and server-side validatate forms using AJAX