Working with authentication.