Apple - Mac does not recognize password after upgrade
In the end I found no reasonable answer to my question. So I decided to set the password (with the method mentioned in the question) to void. Then when the mac is boot the password in no more asked, thus solving the problem.