fixed NoneType exception when fetching user's eid