add security config for method and mvc
refactor of config class of registration module