Auto login fix; load userid from localStorage