updated form validation demo