login check done in background