invite user function added