How do i connect the fields to work properly