Add select and save userId into session