fixed minor issue in TrainGUI logic

Boolean value 'valid' was always true after specifying a valid weight,
was not set back to false before checking valid passengers input.