add return error code on registerMe
Merge pull request #22 from gsaunier/master

add return error code on registerMe