Attorney general advises election authorities on ID requirements