Add authentication check for static files.
Add authentication check for search services.
Fix indentation.