Update login.js to work with error status codes
Update login.js to work with error status codes

This needs to be completely refactored to use nice HTTP status codes
and pretty JSON responses.

jsbin/jsbin,kentcdodds/jsbin,vipulnsward/jsbin,IvanSanchez/jsbin,blesh/jsbin,jamez14/jsbin,filamentgroup/jsbin,HeroicEric/jsbin,digideskio/jsbin,yize/jsbin,Hamcha/jsbin,knpwrs/jsbin,vipulnsward/jsbin,HeroicEric/jsbin,Freeformers/jsbin,simonThiele/jsbin,IveWong/jsbin,arcseldon/jsbin,dhval/jsbin,francoisp/jsbin,arcseldon/jsbin,svacha/jsbin,jwdallas/jsbin,IvanSanchez/jsbin,minwe/jsbin,mingzeke/jsbin,simonThiele/jsbin,peterblazejewicz/jsbin,dennishu001/jsbin,mlucool/jsbin,AverageMarcus/jsbin,knpwrs/jsbin,late-warrior/jsbin,roman01la/jsbin,filamentgroup/jsbin,ilyes14/jsbin,yohanboniface/jsbin,saikota/jsbin,yohanboniface/jsbin,pandoraui/jsbin,eggheadio/jsbin,Freeformers/jsbin,y3sh/jsbin-fork,jasonsanjose/jsbin-app,mcanthony/jsbin,mingzeke/jsbin,martinvd/jsbin,kirjs/jsbin,fend-classroom/jsbin,martinvd/jsbin,johnmichel/jsbin,IveWong/jsbin,peterblazejewicz/jsbin,juliankrispel/jsbin,jamez14/jsbin,kirjs/jsbin,kentcdodds/jsbin,thsunmy/jsbin,johnmichel/jsbin,fend-classroom/jsbin,jsbin/jsbin,fgrillo21/NPA-Exam,dedalik/jsbin,jwdallas/jsbin,mdo/jsbin,ctide/jsbin,yize/jsbin,nitaku/jervis,roman01la/jsbin,pandoraui/jsbin,KenPowers/jsbin,dhval/jsbin,francoisp/jsbin,dennishu001/jsbin,y3sh/jsbin-fork,KenPowers/jsbin,eggheadio/jsbin,knpwrs/jsbin,AverageMarcus/jsbin,minwe/jsbin,late-warrior/jsbin,digideskio/jsbin,mcanthony/jsbin,remotty/jsbin,thsunmy/jsbin,ctide/jsbin,carolineartz/jsbin,KenPowers/jsbin,juliankrispel/jsbin,carolineartz/jsbin,ilyes14/jsbin,svacha/jsbin,fgrillo21/NPA-Exam,mlucool/jsbin,Hamcha/jsbin,jasonsanjose/jsbin-app,saikota/jsbin,dedalik/jsbin