diff --git a/src/Form/RegistrationFormType.php b/src/Form/RegistrationFormType.php
index 24ff915..7ba7b31 100644
--- a/src/Form/RegistrationFormType.php
+++ b/src/Form/RegistrationFormType.php
@@ -5,6 +5,7 @@ namespace App\Form;
use App\Entity\User;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
+use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -17,7 +18,7 @@ class RegistrationFormType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
- ->add('email')
+ ->add('email', EmailType::class)
->add('username')
->add('agreeTerms', CheckboxType::class, [
'mapped' => false,
diff --git a/templates/registration/register.html.twig b/templates/registration/register.html.twig
index ed35d93..d025672 100644
--- a/templates/registration/register.html.twig
+++ b/templates/registration/register.html.twig
@@ -17,6 +17,6 @@
}) }}
{{ form_row(registrationForm.agreeTerms) }}
-
+
{{ form_end(registrationForm) }}
{% endblock %}