flash errors and validation for trips working