Now when user book same trip twice he will get a notification. Book.java is revised so now it works correctly to reserve trips in Book_trip table no matter whether the passenger is already in Passenger table or not.