Other than the motorman and trip rider, no person shall ride on a locomotive unless authorized by the mine foreman, and no person shall ride on loaded cars or between cars of any trip, except that the trip rider may ride on the last car.