created authenticator for users from database