Add error messages for token generation