Uncommented middleware to check authentication