Completed implementing the invite user functionality.