check required params