updating login post route in app.js to for single page apps. fixes #13