Added LoginAPI and app.js