Thanks for your support. I spent a couple of hours on it and finally figure out what to do. It works well.
Just a quick question. I will like that as soon as the user updates his or her password in the newpassword page, the user is immediately redirected to the userProfile page.
Right now, if a user updates the password in the newpassword page, the user remains in the same newpassword page. What should I do to redirect the user after the update of password? Or is there a way to include a link and a message such as "Your Password has been updated" in the newpassword page to only show after the password has been updated?
Your help is always appreciated