Fixed bug where using an incorrect password caused the wrong error to display.