fixed error handling when doing ajax requests, MAJOR fix.
fixed error handling when doing ajax requests, MAJOR fix.

eboominathan/angular-login-example,fsxchen/angular-login-example,colthreepv/angular-login-example,eboominathan/angular-login-example,fsxchen/angular-login-example,henry-hz/angular-firebase-auth,alexpchin/angular-login-example,loganfreeman/angular-login,mrgamer/angular-login-example,alexpchin/angular-login-example