ld.validity;

        if (validity.valueMissing) return "Please fill this field";
        if (validity.typeMismatch) return `Please enter a valid ${field.type}`;
    }

    form.addEventListener("submit", handleSubmit);

    document.addEventListener("DOMContentLoaded", function () {
        const tabButtons = document.querySelectorAll('.tabs__button');
        const tabContents = document.querySelectorAll('.tabs__content');

        tabButtons.forEach((button, index) => {
            button.addEventListene