I am trying to implement a signup functionality with additional checks for duplicate usernames on the client side (since Firestore doesn\'t allow you to set up rules for this).