Inbuilt password validator for password reset

In the page where the user reset the password (name=“password_reset_confirm”), I want to use inbuild django password validator. But unfortunately, I am not able to bring them up on the page. Currently the two password fields are visible and when I change the password, it is working fine but I need to include the password validation that is offered by Django which will check for these below conditions.

Your password can’t be too similar to your other personal information.
Your password must contain at least 8 characters.
Your password can’t be a commonly used password.
Your password can’t be entirely numeric.

urlpatterns = [
path(‘login/’, views.loginPage, name = “user_login”),
path(‘register/’, views.registerPage, name=“user_register”),
path(‘registration-success/’, views.registerSuccessPage, name=“register_success”),
path(‘logout/’, views.logoutPage, name = “user_logout”),
path(‘’, views.home, name = “home”),
path(‘’, include(‘subscription.urls’)),
path(‘’, include(‘core.urls’)),

path('reset_password/', auth_views.PasswordResetView.as_view(template_name = "password_reset.html"), name="reset_password"),
path('reset_password_sent/',auth_views.PasswordResetDoneView.as_view(template_name = "password_reset_sent.html"),name="password_reset_done"),
path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(template_name = "password_reset_confirm.html"),name="password_reset_confirm"),
path('reset_password_complete/', auth_views.PasswordResetCompleteView.as_view(template_name = "password_reset_done.html"),name="password_reset_complete"),


I’m using inbuilt PasswordChangeForm, which can be imported as

from django.contrib.auth.forms import PasswordChangeForm

def change_password(request):
    if request.method == 'POST':
        form = PasswordChangeForm(request.user, request.POST)
        if form.is_valid():
            user =
            update_session_auth_hash(request, user)  # Important!
            messages.success(request, 'Your password was successfully updated!')
            return redirect('change_password')
            messages.error(request, 'Please correct the error below.')
        form = PasswordChangeForm(request.user)

    show = {'form': form}
    return render(request, html_path('change_password'), show)

And this works fine in my templates, as for CSS you can target it via div class or like me I’ve used crispy for bootstrap classes and it renders well in my template like this below screenshot.