fixes #3447 Invalid Login never returns

Fixed the issue and pushed the code, now invalid login shows the message.