update style and fix validate

Signed-off-by: linhha <hlhlinh@gmail.com>