validation checks for same start and end stations on one line & same start and end station of different lines