Delete some temporal files, add active flag to user