Fixed invite functionality for trips

Please review.