changed the way user id is retrieved - giving problems on some of the drupal installations