finished up invite users logic
refactored with concerns