fix login js problem