fix login and update script backup