validate class params