fix import bug and login from share