erModal.style.display = "block";
            document.title = "Login/Register - FinVeda";  // Update title when registering
          });

          // Event listener for the login link
          loginLink.addEventListener("click", function (event) {
            event.preventDefault();
            registerModal.style.display = "none";
            loginModal.style.display = "block";
            document.title = "Login/Register - FinVeda";  // Update title when logging in
          });

          // Close but