Fixed issue with search function not finding student in the database and crashing