bug where token would always return true.