Small bug fixes

- Fix anonymous search
- Security config fixes