adds contains rule for form validation, updates example