or('#btn-create-account');

    var nameErr = document.querySelector('#username-err');
    var pErr = document.querySelector('#password-err');

    //    username must be unique
    userName.addEventListener('keyup', function(){
        console.log(userName.value);
        var xhr = new XMLHttpRequest();
        xhr.open('POST', '/api/checkUserName');
        xhr.send(userName.value);
        xhr.addEventListener('readystatechange', function(){
            var item = xhr.responseText;
            if (item =