add/edit dot validation