           registerModal.style.display = 'none';
          }
        }
        function openModal() {
          var modal = document.getElementById("myModal");
          modal.style.display = "block";
          document.title = "Login/Register - FinVeda";  // Update the title when modal is opened
        }

        function closeModal() {
          var modal = document.getElementById("myModal");
          modal.style.display = "none";
          document.title = "FinVeda";  // Revert the title back when moda