Fix mistake in input_students by putting extra info inside while loop