JS to submit form to reset account api method