connected the front and backend properly for submitting a new trail