refactor(login): update to use resolve for login in app.js