Fixed validation for inline editing