Fixed login error message not displaying correctly.