Add class authenticate method