add login check before pull user's repo