added connection validation on the server