Enhance register and vote functions.