Fixed bug where no error message was displayed when login was incorrect