check for valid entries