add customSecret checking
small fix