I booted in recovery mode and then typed:
mount -o rw,remount / passwd username
I got numerous options, none of them worked. Then I type
passwd and hit enter. It asked for new password, I reset the password and exited the root system then tried to login, but it said the password is incorrect.