Before pressing the submit button
validate that the From and To fields are not empty