changing auth type check