Added validation for uniqueness to edit page