Added authentication class for middleware