Directory cleanup and continued login checking