more fixes to loginjson