Moved the profile and register overrides inside the default template as requested.