Added method to verify token signature.