4👍
✅
I think the problem is you are using ModefForm for login view. ModelForm performs validation the model instance which throws non-unique error.
Try to use simple form like this:
class UserLoginForm(forms.Form):
username = forms.CharField(max_length=25)
password = forms.CharField(widget=forms.PasswordInput)
Source:stackexchange.com