Delays mainMOC Hooks until Authentication

Fixes #418