add validation block and footer