Added checks to avoid errors when creating invites

If current user has no users, will not try to display a list of users
If user does not select a contact from the list of users, flashes error