inputs_chk function

Check if objects are valid