added if statement which changes output message if only one student is entered