Added proper exception status when login failed.
Merge remote-tracking branch 'origin/redesignV2' into redesignV2