socket validations