Fixed issue on required fields for checkboxes or strings with only whitespace