Fixed #19414 -- Added admin registration decorator

Thanks stavros for the suggestion.