validate identifiers when changing them