text: // login
  const loginForm = document.querySelector('#login-form');
  loginForm.addEventListener('submit', (e) => {
      e.preventDefault();
  
      // get user info
      const email = loginForm['login-email'].value;
      const password = loginForm['login-password'].value;
  
      auth.signInWithEmailAndPassword(email, password).then(cred => {
  
          console.log(cred.user)
          // success login
          window.alert("Login Success");
          window.location.replace('Hero.html');
      })
  })