Login seems to fail from second login onwards

I am getting a different error as I follow the tutorial but that may be due to issues on my machine I need to resolve. The Angular 2 Quickstart I mention above might give you a better idea of how to integrate than the tutorial.