Added function to validate tag (non-working yet)