client and server communicates successfully