Yay, another vincent. :-)
So PHPbuilder still does not check for unique usernames. How cute.
WHat you are looking for is authorization, and there are a gazillion examples of that all over the net. I suggest you start by reading the examples in the articles section.