Added check to ensure necessary extensions loaded for authentication