Second update to fix update of password of logged-in user