error validation of the ID