Add validation for Duplicates Tags

Add validation for Duplicates and empty tags on edit function.