refactoring inheriting base class and default not authenticated logic