Restoring login check