Added an exception if token validation failed