Good day!
there is such a form of input and verification e-mail
<body> <form> <p>Email: <input type="email" name="email" required></p> <p><input type="submit" value="Отправить"></p> </form> </body> when you press Enter, the form shows that it is not filled correctly and checks if there is an @ symbol
there is a button to open a modal window
<label class="btn" for="modal-2">Перейти к оплате</label> task: to connect the button with the e-mail form that would have the same effect as when you press Enter, well, if everything is correct, the button went to the modal window