added userid method to fetch the current user's userid