prevent edit submission when there are no hours selected