Fixes to register, login, send invite, and accept invite.