Fix to prevent the submission of empty value