Added invite user function