Fixes problem with password update on the profile page.