Added check for valid user on inviting