add bean validation,the first validation example is loginForm.