Auth's token generator modified, small style tweak for errors