title: login() missing 1 required positional argument: 'user'
body: <p>Here is my view,</p>
  <pre><code>def login_view(request) :
      if request.method == 'POST':
          form = LoginForm(request.POST)
          if form.is_valid():
            email = form.cleaned_data['email']
            password = form.cleaned_data['password']
            user = authenticate(email=email, password=password)
  
            if user is not None:
                form = LoginForm()
                login(request, user)
  </code></pre>
  <p>I get an error:</p>
  <pre><code>login() missing 1 required positional argument: 'user'
  </code></pre>
  <p>Also, I am using a custom user model</p>
  <p>My <code>urls.py</code>:</p>
  <pre><code>urlpatterns = [
  path('',views.register, name='register' ),
  path('form',views.form, name = 'form'),
  path('login',views.login, name = 'login ')]
  </code></pre>