    log('Server does not have the expected example basic handler enabled, giving up');
                log('Supported list: ' + authHandlers)
                return;
            }
        }

        // pass the username and password to login
        var username = document.getElementById('username').value;
        var token = document.getElementById('password').value;
        client.login({
            type: CoreClient.LOGIN_TYPE_PASSWORD,
            username,
            token
        }).then(
           