error checking. dialogue box when no inputs are provided.