removed logout() function from main