fix style.
modify validation.