creates a basic login/logout workflow