Disabling submit button if no valid rows