modify register function
Merge branch 'master' of https://github.com/olivierantunes/CAOSWeb