update user invetation function