reprocessTokenInMode done right. Also, checking correct credentials for commit