Added a check for existing usernames before creating new