MarionL - fixed a defect in the updateUser function

Fixed issue in updateUser.