The president says such changes are necessary to block terrorists from trying to influence Russia 's local elections .