Simple method to submit form using promises