Validate token generation