Implemented testing for passenger validity