So, two accounts with username "ted" and password "secret" have been created. Both are superusers with all rights. One for use to connect from localhost and another to connect from anywhere. It is necessary to have both accounts for user "ted" to be able to connect from anywhere as "ted".