validate token error fixed