improved reg code
Merge branch 'master' of https://github.com/dordal/userballot