In my register form I added a validation error when there is a duplicate username or email, but it is not working in my template.
forms.py :
from djang