When entering text into the email input field for the newsletter subscription, the form currently:
Accepts any type of text, not just valid email addresses.
Does not display any confirmation or thank-you message upon successful submission.
To improve the user experience, the form should:
Validate the input to ensure only proper email addresses are accepted.
Display a confirmation message (e.g., "Thank you for subscribing!") once a valid email is submitted.
Expected Behavior:
The input should be validated to ensure only proper email formats (e.g., "abc@example.com") are allowed.
A user-friendly message should appear after submitting a valid email (e.g., "Thank you for subscribing!").

When entering text into the email input field for the newsletter subscription, the form currently:
Accepts any type of text, not just valid email addresses.
Does not display any confirmation or thank-you message upon successful submission.
To improve the user experience, the form should:
Validate the input to ensure only proper email addresses are accepted.
Display a confirmation message (e.g., "Thank you for subscribing!") once a valid email is submitted.
Expected Behavior:

The input should be validated to ensure only proper email formats (e.g., "abc@example.com") are allowed.
A user-friendly message should appear after submitting a valid email (e.g., "Thank you for subscribing!").