Fix for change password if custom user model is used