text: export function checkField(text, type) {
      if (type === "Email") {
          if (!/^([a-zA-Z0-9_-]+?)@([a-zA-Z]+?).([a-zA-Z]{2,}?)$/.test(text)) {
              document.getElementById("errorElEmail").innerText = `A valid email is needed`
          }
          else {
              document.getElementById("errorElEmail").innerText = ``
          }
          return
      }
  
      else {
          if (!text) {
              document.getElementById(`errorEl${type}`).innerText = `${type} needs to be entered`
          }
          else {
              document.getElementById(`errorEl${type}`).innerText = ''
          }
      }
  }
  
  // export function changeEl(selection) {
  //     var changed = document.getElementById(selection);
  
  //     changed.className === 'sel'
  //         ? changed.className = 'des'
  //         : changed.className = 'sel'
  // }
  
  