Emit events. You can log out.
bad-credentials message when login fails