Phoenix form e-mail validation

         <%= text_input f, :customeremail, [required: "true",class: "form-control", type: "email"]%>

This adds Html attribute type=“email”

*class=“form-control” for boostrap