verified functional for login / logout