Fixed password change to properly update database entry