clean and validate username before trying to connect to the server
show "lost connection to the server" error message after disconnection