fixed my mess, and added the validUsername function in server.py