Update SocketService.py

Added a validate method to prevent invalid values being passed