Fix public registration view crash

Removed constructor and moved code into on_start() to avoid PHP crash caused by uninitialized $c. 
Fixes issue #1481.