validate id