Basic form

Fortunately there is the input type="email", which makes things easier.
The project is basically a modification of the final example with minimal changes. I include a screenshot of the code for reference for those interested.
But I advise that you better try it first, before seeing my answer.