fix error logging in login-demo