Added fetchUserId method to User class.