Check for required parameters.