fixed bug with  and added invite-user boilerplate