validate_stddiff_inputs function

Validate inputs for stddiff functions