Validate ID on input