added the protection for add user relationship