# I am having Issue with Django's authentication system

**URL:** <https://forum.djangoproject.com/t/i-am-having-issue-with-djangos-authentication-system/30637>\
**Category:** Mystery Errors\
**Created:** [April 29, 2024, 6:17am UTC](https://forum.djangoproject.com/t/i-am-having-issue-with-djangos-authentication-system/30637 "2024-04-29T06:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberrttt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/roberrttt/32/20753_2.png) [@roberrttt](https://forum.djangoproject.com/u/roberrttt)\
**Post date:** [April 29, 2024, 6:17am UTC](https://forum.djangoproject.com/t/i-am-having-issue-with-djangos-authentication-system/30637/1 "2024-04-29T06:17:56Z")

</div>

Hello there,

I am facing an issue with Django’s authentication system and would appreciate any help or guidance you can provide. I’ve set up the authentication system following the official documentation, but I’m encountering an error when trying to log in users.

I am using Django version X.X.X.  
I have configured the `AUTHENTICATION_BACKENDS` setting in my `settings.py` file.  
I have created a custom user model that extends `AbstractBaseUser`.  
I am using Django’s built-in `LoginView` for the login functionality.

The problem arises when I try to log in a user. After entering the correct credentials, the login form just reloads without any error message. I have checked the database, and the user credentials are correct.

I have also tried debugging using `print` statements and checking the Django logs, but I have not been able to find the root cause of the issue.

Has anyone encountered a similar problem with Django’s authentication system?

Also, I have gone through this: [https://docs.djangoproject.com/en/5.0/topics/auth/](https://docs.djangoproject.com/en/5.0/topics/auth/)[devops](https://www.igmguru.com/cloud-computing/devops-certification-training/) which definitely helped me out a lot.

Any advice on how to troubleshoot or resolve this issue would be greatly appreciated.

Thank you in advance for your help and assistance.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [April 29, 2024, 11:59am UTC](https://forum.djangoproject.com/t/i-am-having-issue-with-djangos-authentication-system/30637/2 "2024-04-29T11:59:40Z")

</div>

> [@roberrttt](#):
>
> I have checked the database, and the user credentials are correct.

How (specifically) are you checking the credentials?

How are you creating users? (Are you ensuring the `is_active` attribute is set?)

How have you configured `AUTHENTICATION_BACKENDS`? (This isn’t typically needed, even with a custom user model.)
