client-side validation for new trip, created dialog alert function myAlert(str)