Check if a cell was selected before submitting form