Test for connection with server (login)