generate user id variable in home page