General authentication cleanup