add more login check