login, add user, clear cache on shutdown