old_contents: // Global Variables please work //
  var firstPasswordInput = document.querySelector('#your-password');
  var confirmPasswordInput = document.querySelector('#confirm-password');
  var accountCreate = document.querySelector('#account-create');
  
  // Check Requirements //
  function checkRequirements() {
  
    var firstPassword = firstPasswordInput.value;
    var characterMessage = document.querySelector('.js-require-characters');
    var capitalMessage = document.querySelector('.js-require-capital');
    var numberMessage = document.querySelector('.js-require-number');
  
    // Check Password Length
    if (firstPassword.length < 8) {
      firstPasswordInput.classList.remove('is-valid');
      firstPasswordInput.classList.add('is-invalid');
      characterMessage.classList.remove('is-valid');
      characterMessage.classList.add('is-invalid');
    } else {
      firstPasswordInput.classList.remove('is-invalid');
      firstPasswordInput.classList.add('is-valid');
      characterMessage.classList.remove('is-invalid');
      characterMessage.classList.add('is-valid');
    }
  
    if (!firstPassword.match(/[A-Z]/g)) {
      firstPasswordInput.classList.remove('is-valid');
      firstPasswordInput.classList.add('is-invalid');
      capitalMessage.classList.remove('is-valid');
      capitalMessage.classList.add('is-invalid');
    } else {
      firstPasswordInput.classList.remove('is-invalid');
      firstPasswordInput.classList.add('is-valid');
      capitalMessage.classList.remove('is-invalid');
      capitalMessage.classList.add('is-valid');
    }
  
    if (!firstPassword.match(/\d/g)) {
      firstPasswordInput.classList.remove('is-valid');
      firstPasswordInput.classList.add('is-invalid');
      numberMessage.classList.remove('is-valid');
      numberMessage.classList.add('is-invalid');
    } else {
      firstPasswordInput.classList.remove('is-invalid');
      firstPasswordInput.classList.add('is-valid');
      numberMessage.classList.remove('is-invalid');
      numberMessage.classList.add('is-valid');
    }
  
  };
  
  firstPasswordInput.addEventListener('focus', function(event) {
    firstPasswordInput.classList.remove('is-valid');
    firstPasswordInput.classList.remove('is-invalid');
  }, true);
  
  firstPasswordInput.addEventListener('blur', function(event) {
    checkRequirements();
  }, true);
  
  function comparePasswords() {
  
    var firstPassword = firstPasswordInput.value;
    var confirmPassword = confirmPasswordInput.value;
  
    if (firstPassword === confirmPassword) {
      console.log('they match');
    } else {
      console.log("they don't match");
    }
  
  }
  
  confirmPasswordInput.addEventListener('blur', function(event) {
    comparePasswords();
  }, true);
  
  // Initialize on Submit
  
  accountCreate.onclick = function () {
    checkRequirements();
  };
  
new_contents: // Global Variables please work //
  var firstPasswordInput = document.querySelector('#your-password');
  var confirmPasswordInput = document.querySelector('#confirm-password');
  var accountCreate = document.querySelector('#account-create');
  
  // Check Requirements //
  function checkRequirements() {
  
    var firstPassword = firstPasswordInput.value;
    var characterMessage = document.querySelector('.js-require-characters');
    var capitalMessage = document.querySelector('.js-require-capital');
    var numberMessage = document.querySelector('.js-require-number');
  
    // Check Password Length
    if (firstPassword.length < 8) {
      characterMessage.classList.remove('is-valid');
      characterMessage.classList.add('is-invalid');
    } else {
      characterMessage.classList.remove('is-invalid');
      characterMessage.classList.add('is-valid');
    }
  
    if (!firstPassword.match(/[A-Z]/g)) {
      capitalMessage.classList.remove('is-valid');
      capitalMessage.classList.add('is-invalid');
    } else {
      capitalMessage.classList.remove('is-invalid');
      capitalMessage.classList.add('is-valid');
    }
  
    if (!firstPassword.match(/\d/g)) {
      numberMessage.classList.remove('is-valid');
      numberMessage.classList.add('is-invalid');
    } else {
      numberMessage.classList.remove('is-invalid');
      numberMessage.classList.add('is-valid');
    }
  
    if (firstPassword.length >= 8) {
      if (firstPassword.match(/[A-Z]/g) && firstPassword.match(/\d/g)) {
        firstPasswordInput.classList.remove('is-invalid');
        firstPasswordInput.classList.add('is-valid');
      } else {
        firstPasswordInput.classList.remove('is-valid');
        firstPasswordInput.classList.add('is-invalid');
      }
    } else {
      firstPasswordInput.classList.remove('is-valid');
      firstPasswordInput.classList.add('is-invalid');
    }
  
  };
  
  firstPasswordInput.addEventListener('focus', function(event) {
    firstPasswordInput.classList.remove('is-valid');
    firstPasswordInput.classList.remove('is-invalid');
  }, true);
  
  firstPasswordInput.addEventListener('keyup', function(event) {
    checkRequirements();
  }, true);
  
  function comparePasswords() {
  
    var firstPassword = firstPasswordInput.value;
    var confirmPassword = confirmPasswordInput.value;
  
    if (firstPassword === confirmPassword) {
      confirmPasswordInput.classList.remove('is-invalid');
      confirmPasswordInput.classList.add('is-valid');
    } else {
      confirmPasswordInput.classList.remove('is-valid');
      confirmPasswordInput.classList.add('is-invalid');
    }
  
  }
  
  confirmPasswordInput.addEventListener('keyup', function(event) {
    comparePasswords();
  }, true);
  
  // Initialize on Submit
  
  accountCreate.onclick = function () {
    checkRequirements();
  };
  
subject: Add 3 conditional validation on passwords