Sometimes we need to ask user for their password again (after login) to do something, such as change their old password.
The best practice is to ask for their old password first and if they submit correct password then ask them for new password.
Here is the example app that you can check,
Ask for Password (adalo.com)
This is initial version, other buttons will be enabled later.