login / logout handling prototype