Implementing authentication.