JS validation using data attributes for binding.