Login sets global user variable.