title: Can i make a form consisting of different fields with signup fields?
body: <p>models.py </p>
  
  <pre><code>class employeeModel(models.Model):
      employee_id = models.CharField(max_length=300,unique=True,help_text='Employee ID should not be same')
      name = models.CharField(max_length=300)
      father_name = models.CharField(max_length=300)
      username = models.CharField(max_length=50,null=True,blank=True)
      email = models.EmailField(null=True,blank=True)
      password = models.CharField(max_length=20,null=True,blank=True)
  
  
      def get_absolute_url(self):
          return reverse('detail_view',kwargs={'employee_id':self.employee_id})
  
      def __str__(self):
          return self.employee_id
      class Meta:
          verbose_name = 'Employee Detail'
  </code></pre>
  
  <p>views.py </p>
  
  <pre><code>User = get_user_model()
  def create_view(request):
      if request.method == 'POST':
          form = employeeForm(request.POST or None,request.FILES or None)
          if form.is_valid():
  
              username = form.cleaned_data['username']
              email = form.cleaned_data['email']
              password = form.cleaned_data['password']
              User= get_user_model()
              user=
                   User.objects.create_user(
                    username=username,email=email,password=password
                      )
              authenticate(
              request,username=username,email=email,password=password
              )
              user.save()
              form.save()
  
  
              return redirect('emp_list')
      else:
          form = employeeForm()
      return render(request,'create_employee.html',{'form':form})
  </code></pre>
  
  <p>Though its not raising any error but User cant create instances though this method, though 'user objects' are showing in EmployeeModel.objects.all() not in User.objects.all(). Thats why when i create any user though this form login fails cause they are not objects of User.</p>
  
  <p>What can i do to make it work? or i have to discard this code?</p>