Add more logging to debug invalid signature problem