implemented the invite user feature the first half