Fix login error message display broken in b51de327