prevent duplicate user from being added in Code#assign_user