Check if the username already exists in the database, during the registration process