Fixed bug where login errors would not display