fix bug where value with no length would pass validation with length required