ata = new FormData(this);
            fetch(this.action, {
                method: 'POST',
                body: formData,
                headers: {
                    'X-CSRFToken': formData.get('csrfmiddlewaretoken')
                }
            }).then(response => {
                if (response.ok) {
                    closeModal();
                    window.location.reload();
                } else {
                    alert('Failed to create team. Please try again.');
                }
          