Corrected 'superclass mismatch for class AuthenticationError'