adding clients validation
merged server.py