Fix login: display message when login failed.