add return error code on registerMe