Add isMod field for users, fix username duplicate checking, handle mod d/c

@metakirby5 please review :jack_o_lantern: