Test program to manage user session and log in activity