Fixed login failure message not being displayed