fix validate code style