Add __contains__ magic method to form.