Validation for textfields having invalid or empty string in inventory UI