proper id validation