Refactored input_students with until loop