Changed redirect_to link from device_path to student_path