leid checking is in stack before gets to transaction
Changed check in joinent to onlhy check for corner case if main uid is 0 which is not
allowed