# Unique username conditionals not working

**URL:** <https://forum.bubble.io/t/unique-username-conditionals-not-working/227624>\
**Category:** Database\
**Created:** [October 9, 2022, 5:33pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624 "2022-10-09T17:33:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharynelson0](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zacharynelson0/32/146908_2.png) [@zacharynelson0](https://forum.bubble.io/u/zacharynelson0)\
**Post date:** [October 9, 2022, 5:33pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624/1 "2022-10-09T17:33:03Z")

</div>

![Screen Shot 2022-10-09 at 12.30.13 PM](https://us1.discourse-cdn.com/bubble/original/3X/e/8/e8490e42020ab368403551f5eadd4c44a74f5674.jpeg)  
I have the conditional set to search for usernames already in database so the new user cant use an already taken username, but the text wont turn red when live texts value is a username in the database already. Not sure what is going wrong? need help! thx!

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [October 9, 2022, 5:35pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624/2 "2022-10-09T17:35:18Z")

</div>

Hi there, @zacharynelson0… your issue is likely related to the [default privacy rule](http://forum.bubble.io/t/new-ish-to-bubble-and-not-seeing-user-data-you-are-expecting-to-see/200842) on the `User` data type, so check out that link and see if it helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![zacharynelson0](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zacharynelson0/32/146908_2.png) [@zacharynelson0](https://forum.bubble.io/u/zacharynelson0)\
**Post date:** [October 9, 2022, 5:57pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624/3 "2022-10-09T17:57:47Z")

</div>

![Screen Shot 2022-10-09 at 12.56.52 PM](https://us1.discourse-cdn.com/bubble/original/3X/5/f/5fec499aba94f962da88fd0bd97bc3a96f4bc5ec.jpeg)  
thanks for the response! is this what you are referring to? it says it is checked for the usernames

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [October 9, 2022, 6:01pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624/4 "2022-10-09T18:01:11Z")

</div>

Yes, that is the rule, and it prohibits users from being able to see other users’ data. Your issue is that you are trying to let a user who is not logged in (or even signed up yet) find other users in searches and see their username field so the username count can be evaluated. So, you would have to check the _Find this in searches_ box and the `Username` box for everyone else (which is just below what you are showing in the screenshot).

---

<div class="post-metadata">

**Author:** ![zacharynelson0](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zacharynelson0/32/146908_2.png) [@zacharynelson0](https://forum.bubble.io/u/zacharynelson0)\
**Post date:** [October 9, 2022, 6:10pm UTC](https://forum.bubble.io/t/unique-username-conditionals-not-working/227624/5 "2022-10-09T18:10:35Z")

</div>

Yes that fixed it! Thank you so much!!
