added logout and Clear the screen on server connect