Changed catch in student controller