removed unwanted code from inviteUser API