Username/Password System

I made it so that if a user signs up with the same name as a name already in the database but that doesn't have a username/password yet then it just adds the username and password to their "account".