add login check and login automatically