@staticmethod
def _validate_admin(admin_enabled, admin_username, admin_password):
    """
        Validates the admin user settings.
        """
    if admin_enabled:
        if not admin_username:
            raise ValueError(
                'Admin account is enabled but no username has been set.')
        if not admin_password:
            raise ValueError(
                'Admin account is enabled but no password has been set.')
