saving and displaying details of student