Add registration logical.
Merge branch 'dev' of github.com:onecampus/wine into dev