Required validator should return an error for strings that only contain whitespace