Fix permissions slackening on admin page, and add a bit more logging.