Fix passport to work with ajax call rather than form submit. Change forms to use knockout.js form data-bind for submit.