activate middleware for SocialAuth exception handling