invite and login fix