check if variables are filled in before continuing