added SPA for user authentication with express and swig