Run the following commands on your prompt to change current password
Changing password for pi.
(current) UNIX password: currentpassword
Enter new UNIX password: newpassword
Retype new UNIX password: newpassword
passwd: password updated successfully
It asks for your current password and later we type our new password
Reboot and check 🙂