name and id validation