added a method to provide userid