creates getStudent method for detailStudentCtrl