add user invite logic