check dictionary before submitting