Cleanup for authentication