Implement invitation using email
Add popup to invite new members
Improve code based on github comments.