main loop/mesage pump skip if login fails