check params validity