Updating UI and validate for duplicate port