Add form validate and fix some style.