Fix invitation and login procedures.