Add allow user registration setting to admin page

Add checkbox html helper extension
Some code cleanup