People will need to show photo ID at polling stations when voting in the local elections on 2 May.