first implementation of new authentication.