Updating tmp folder and agent login template