Updating student activity page action -> check error message logic