Check inputs.