check token validity before send it