fixing chat validate