changed logic on checking whether a the local user has been added