Education Minister vows legal action for exam violations