Modification on is_valid_value