Refactor privilege (refs #17)
Refactor templates (refs #13)
Refactored validator and widget (refs #13)