added middleware for authentication