add: validation and conection to server