Integrate login view with the team pulse js API