check if inputs are not null