improve invalid login error message. close #294
merge.