I had this issue as well and it seemed related to the user names.
I had 2 user accounts, niclas and niclas-2.
Then i renamed niclas-2 --> niclas.
So now i had 2 user account names called niclas, but with different passwords.
In the user directory i also had 2 different account directories, niclas-2 and niclas althought the user names were the same.
Now it always logged in to the first account in the list no matter what password i used.
So it seem like the problem is related to:
- you can actually have multiple accounts with same username
- the selection of the user based on username is not done correctly.
For me it worked when i differentiated the user names properly. Im suspecting the problem might also arise when you have user names with space in it.
For example: user name, user fullname.
For that case i suggest change the names complete for testing, like randomName, username.