Validation when type is empty