Fix a bug in custom authentication

Now custom authenticator can be used in an authenticators array.
Also you can use more than one custom authenticator.