edited set_active function in student_controller.rb