Unable to login locally

Your software
My Mautic version is: 3.2
My PHP version is: 7.4
My Database type and version is: mySQL

Your problem
My problem is: I have installed mautics locally, trying to login using the credentials, the login_check is giving error 500

These errors are showing in the log:

500 Internal Server Error - Type error: Argument 1 passed to Mautic\UserBundle\Entity\PermissionRepository::getPermissionsByRole() must be an instance of Mautic\UserBundle\Entity\Role, null given, called in C:\xampp\htdocs\mautic\mautic-features\app\bundles\UserBundle\Security\Provider\UserProvider.php on line 104

Steps I have tried to fix the problem:
I have checked the user role, the role is not getting passed, also in the Mysql user schema, only role id is available.