add global variable userid and username