add validator and modify charactorEncodingFilter