keep the user logged in even though user changes password django
from django.contrib.auth import authenticate, login, update_session_auth_hash
###after changing password in view
update_session_auth_hash(request, form.user)
###form.user is currentuser also can be accesed from request.user