Validators for websocket server