Code style of registration view

This has to be public because so far there was no scope defined (which implies public).