Update login.js (#6527)
Update login.js (#6527)

Playing with this example, I realized that it was not doing what I expected in case of an error coming back from the API (e.g : throw properly the error and save it in the state).
JeromeFitz/next.js,zeit/next.js,azukaru/next.js,JeromeFitz/next.js,JeromeFitz/next.js,azukaru/next.js,JeromeFitz/next.js,BlancheXu/test,flybayer/next.js,flybayer/next.js,flybayer/next.js,BlancheXu/test,zeit/next.js,flybayer/next.js,azukaru/next.js,BlancheXu/test,zeit/next.js,azukaru/next.js